package com.goa.init;

import com.goa.core.NettyServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author chuyongshuo
 * @version 1.0
 * @date 2024/11/8 14:49
 */
@Component
public class NettyStarter implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
         new Thread(()->{
            try {
                new NettyServer(9999).run();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }).start();
    }
}
